.sign-in-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  
  // 头部区域样式
  .header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    
    .title-area {
      display: flex;
      align-items: center;
      gap: 16px;
      
      .btn-back {
        display: flex;
        align-items: center;
        padding: 8px 16px;
        background-color: #f0f0f0;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        color: #333;
        font-weight: 500;
        transition: all 0.2s ease;
        
        &:hover {
          background-color: #e0e0e0;
          transform: translateX(-2px);
        }
        
        i {
          margin-right: 8px;
        }
      }
      
      h1 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
        color: #1a1a1a;
      }
    }
    
    .btn-end-task {
      padding: 10px 20px;
      background-color: #f44336;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      font-size: 15px;
      transition: all 0.2s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      
      &:hover {
        background-color: #e53935;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      }
      
      &:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        box-shadow: none;
      }
    }
  }
  
  // 错误和成功消息样式
  .error-message {
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: rgba(244, 67, 54, 0.08);
    color: #f44336;
    font-weight: 500;
    border-left: 4px solid #f44336;
    animation: fadeIn 0.3s ease;
  }
  
  .success-message {
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: rgba(76, 175, 80, 0.08);
    color: #4caf50;
    font-weight: 500;
    border-left: 4px solid #4caf50;
    animation: fadeIn 0.3s ease;
  }
  
  // 任务信息卡片样式
  .task-info-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    
    &:hover {
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }
    
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      border-bottom: 1px solid #f0f0f0;
      padding-bottom: 16px;
      
      h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
      }
      
      .task-status {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        
        &.active {
          background-color: rgba(33, 150, 243, 0.12);
          color: #1976d2;
        }
        
        &.finished {
          background-color: rgba(158, 158, 158, 0.12);
          color: #616161;
        }
      }
    }
    
    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      
      .info-item {
        display: flex;
        flex-direction: column;
        
        label {
          font-size: 14px;
          color: #757575;
          margin-bottom: 6px;
        }
        
        span {
          font-size: 16px;
          font-weight: 500;
          color: #333;
          
          &.sign-rate {
            color: #4caf50;
            font-size: 18px;
          }
        }
      }
    }
  }
  
  // 学生签到列表区域
  .students-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    
    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 16px;
      
      h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
      }
      
      .filters {
        display: flex;
        align-items: center;
        gap: 16px;
        
        .search-box {
          input {
            padding: 10px 16px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            width: 240px;
            transition: all 0.2s ease;
            
            &:focus {
              outline: none;
              border-color: #2196f3;
              box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
            }
            
            &::placeholder {
              color: #9e9e9e;
            }
          }
        }
        
        .filter-checkbox {
          display: flex;
          align-items: center;
          gap: 8px;
          
          input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
          }
          
          label {
            font-size: 14px;
            cursor: pointer;
            user-select: none;
          }
        }
      }
    }
    
    .empty-state {
      padding: 40px;
      text-align: center;
      color: #757575;
      background-color: #f9f9f9;
      border-radius: 8px;
      margin: 20px 0;
      
      p {
        font-size: 16px;
        margin: 0;
      }
    }
    
    .table-container {
      overflow-x: auto;
      margin-bottom: 24px;
      border-radius: 8px;
      border: 1px solid #f0f0f0;
      
      .students-table {
        width: 100%;
        border-collapse: collapse;
        
        thead {
          background-color: #f5f5f5;
          
          th {
            padding: 14px 16px;
            text-align: left;
            font-weight: 600;
            color: #424242;
            border-bottom: 2px solid #e0e0e0;
            white-space: nowrap;
          }
        }
        
        tbody {
          tr {
            transition: background-color 0.2s ease;
            
            &:hover {
              background-color: #f9f9f9;
            }
            
            &.signed-row {
              background-color: rgba(76, 175, 80, 0.04);
              
              &:hover {
                background-color: rgba(76, 175, 80, 0.08);
              }
            }
            
            &.absent-row {
              background-color: rgba(244, 67, 54, 0.04);
              
              &:hover {
                background-color: rgba(244, 67, 54, 0.08);
              }
            }
            
            td {
              padding: 14px 16px;
              border-bottom: 1px solid #f0f0f0;
              
              .status-badge {
                display: inline-block;
                padding: 4px 10px;
                border-radius: 16px;
                font-size: 13px;
                font-weight: 500;
                text-align: center;
                
                &.signed {
                  background-color: rgba(76, 175, 80, 0.12);
                  color: #2e7d32;
                }
                
                &.absent {
                  background-color: rgba(244, 67, 54, 0.12);
                  color: #d32f2f;
                }
              }
              
              .btn-sign-in {
                padding: 6px 12px;
                background-color: #2196f3;
                color: white;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                font-weight: 500;
                font-size: 13px;
                transition: all 0.2s ease;
                
                &:hover {
                  background-color: #1976d2;
                  transform: translateY(-1px);
                }
                
                &:disabled {
                  opacity: 0.65;
                  cursor: not-allowed;
                  transform: none;
                }
              }
            }
          }
        }
      }
    }
    
    // 签到统计信息
    .statistics-section {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      background-color: #f5f5f5;
      border-radius: 8px;
      padding: 20px;
      margin-top: 30px;
      
      .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        
        .label {
          font-size: 14px;
          color: #757575;
          margin-bottom: 8px;
        }
        
        .value {
          font-size: 24px;
          font-weight: 600;
          
          &.signed {
            color: #4caf50;
          }
          
          &.absent {
            color: #f44336;
          }
          
          &.rate {
            color: #2196f3;
          }
        }
      }
    }
  }
  
  // 加载状态
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    
    .spinner {
      width: 40px;
      height: 40px;
      border: 4px solid rgba(33, 150, 243, 0.2);
      border-top-color: #2196f3;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 16px;
    }
    
    p {
      font-size: 16px;
      color: #757575;
    }
  }
  
  // 错误状态
  .error-container {
    text-align: center;
    padding: 60px 0;
    
    h2 {
      font-size: 24px;
      color: #f44336;
      margin-bottom: 16px;
    }
    
    p {
      font-size: 16px;
      color: #757575;
      margin-bottom: 24px;
    }
    
    .btn-primary {
      padding: 10px 20px;
      background-color: #2196f3;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 500;
      font-size: 15px;
      transition: all 0.2s ease;
      
      &:hover {
        background-color: #1976d2;
      }
    }
  }
}

// 动画
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

// 响应式设计
@media (max-width: 768px) {
  .sign-in-detail-container {
    padding: 16px;
    
    .header-section {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      
      .btn-end-task {
        align-self: flex-end;
      }
    }
    
    .students-section {
      .section-header {
        flex-direction: column;
        align-items: flex-start;
        
        .filters {
          width: 100%;
          flex-direction: column;
          align-items: flex-start;
          
          .search-box input {
            width: 100%;
          }
        }
      }
      
      .statistics-section {
        .stat-item {
          width: 50%;
          margin-bottom: 16px;
        }
      }
    }
  }
} 